package com.yy.wga.admin.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yy.wga.admin.service.pojo.AdminMenuDO;
import com.yy.wga.mp.module.admin.response.AdminMenuInfoResponse;

import java.util.List;

/**
 * 菜单信息(AdminMenu)表服务接口
 *
 * @author guochao
 * @since 2024-11-06 22:56:23
 */
public interface AdminMenuService extends IService<AdminMenuDO> {
    /**
     * 菜单列表
     * @return
     */
    List<AdminMenuInfoResponse> listMenus();


    /**
     * 生成tree结构菜单
     * @param responseList 菜单列表
     * @param parentMenuId 上级id，第一级为0
     * @return tree结构菜单
     */
    List<AdminMenuInfoResponse> getMenuTree(List<AdminMenuInfoResponse> responseList, Long parentMenuId);
}
